FROM hub.registry.comac.intra/openjdk:8-jdk-alpine

ADD ./usercenter-service-srv/target/usercenter-service-srv.jar /home/app/start.jar

WORKDIR /home/app
# 增加容器内中⽂支持
ENV LANG="C.UTF-8"

# 设置时区
ENV TZ=Asia/Shanghai

# 增强 Webshell 使⽤体验
ENV TERM=xterm

EXPOSE 8080
#ENV JAVA_OPTS='-Xmx2688M -Xms2688M -Xmn960M'

ENV JAVA_OPTS='-XX:+UseG1GC -XX:MaxMetaspaceSize=256M -XX:MetaspaceSize=256M'
USER root
#CMD ["sh","-c","java $JAVA_OPTS -jar /home/app/start.jar"]
CMD ["sh","-c","java $JAVA_OPTS -jar /home/app/start.jar"]
